using System;

using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using MSGraph = Microsoft.Office.Interop.Graph;

using Outcoding.GraphGenerator.Entities;

namespace Outcoding.GraphGenerator.Generator.Util {
    public class ChartTypeHelper {
        public static MSGraph.XlChartType GetPPChartType(ChartType chartType) {
            MSGraph.XlChartType msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DColumn;
            switch (chartType) {
                case ChartType.xlLine:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlLine;
                    break;
                case ChartType.xlLineMarkers:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlLineMarkers;
                    break;
                case ChartType.xlColumnClustered:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlColumnClustered;
                    break;
                case ChartType.xlColumnStacked:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlColumnStacked;
                    break;
                case ChartType.xlColumnStacked100:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlColumnStacked100;
                    break;
                case ChartType.xl3DColumn:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DColumn;
                    break;
                case ChartType.xl3DColumnClustered:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DColumnClustered;
                    break;
                case ChartType.xl3DColumnStacked:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DColumnStacked;
                    break;
                case ChartType.xl3DColumnStacked100:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DColumnStacked100;
                    break;
                case ChartType.xlBarClustered:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlBarClustered;
                    break;
                case ChartType.xlBarStacked:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlBarStacked;
                    break;
                case ChartType.xlBarStacked100:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xlBarStacked100;
                    break;
                case ChartType.xl3DBarClustered:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DBarClustered;
                    break;
                case ChartType.xl3DBarStacked:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DBarStacked;
                    break;
                case ChartType.xl3DBarStacked100:
                    msType = Microsoft.Office.Interop.Graph.XlChartType.xl3DBarStacked100;
                    break;
                case ChartType.xlUnknown:
                    break;
            }
            return msType;
        }
    }
}
